package com.snimay.app.clazz.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.snimay.heibernate.Annotation.table;

/**   
 * @Title      : Field.java
 * @Package    : com.snimay.app.clazz.vo
 * @Description: TODO 
 * @author     : xxy
 * @date       : 2018年5月2日 下午2:47:35
 * @version    : V1.0   
 */
@Entity
@Table(name = "SYS_Field")
@table(query = "id", name = "字段",size=10)
public class Field {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long id;
	/**
	 * @Description: 字段名称 
	 * @author     : xxy
	 */
	public String name;
	/**
	 * @Description: 类型 
	 * @author     : xxy
	 */
	@Column(name = "clazz_")
	public String clazz;
	/**
	 * @Description: 查询字段  
	 * @author     : xxy
	 */
	@Column(name = "clazzQuery_")
	public String clazzQuery;
	/**
	 * @Description: 列名 
	 * @author     : xxy
	 */
	@Column(name = "text_")
	public String text;
	/**
	 * @Description: 校验 
	 * @author     : xxy
	 */
	@Column(name = "regex_")
	public String regex;
	/**
	 * @Description: 数据校验报错 
	 * @author     : xxy
	 */
	@Column(name = "regexText_")
	public String regexText;
	
	/**
	 * @Description: 百分百宽度 
	 * @author     : xxy
	 */
	@Column(name = "flex_")
	public String flex;
	/**
	 * @Description: 是否唯一 
	 * @author     : xxy
	 */
	@Column(name = "isonly_")
	public boolean isonly;
	/**
	 * @Description: 长度
	 * @author     : xxy
	 */
	@Column(name = "length_")
	public int length;
	/**
	 * @Description: 排序 
	 * @author     : xxy
	 */
	@Column(name = "index_")
	public int index;
	
	
	@Column(name = "rulses_")
	public String rules;
	
	@Column(name = "changeRules_")
	public String changeRules;
	
	@Column(name = "changeRender_")
	public String changeRender;
	
	@Column(name = "changeFocus_")
	public String changeFocus;
	
	@Column(name = "changeBlur_")
	public String changeBlur;
	
	/**
	 * @Description: 是否在列表中查看 
	 * @author     : xxy
	 */
	public boolean ishide;
	
	
	/**
	 * @Description: 处理类型 string int list obj list 
	 * @author     : xxy
	 */
	public String type;
}
